<template>
  <div>
    <div class="wangEditor_up">
      <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
        <!-- 第一类   播放器 -->
        <el-tab-pane label="播放器" name="1">
          <div v-if="activeNum == 1">
            <div class="describe">
              <div class="describe_title">说明：</div>
              <ul class="describe_item">
                <li>1、需要安装一个插件：npm install --save supervideo</li>
                <li>2、superVideo还有许多实用的方法/事件/属性，想深入使用的请参考API文档 —— https://hulalalalala.github.io/superVideo/api/index.html</li>
              </ul>
            </div>
            <div class="list_box">
              <div class="list_item">
                <video-one></video-one>
                <p class="path">路径：</p>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <!-- 第二类  监控 -->
        <el-tab-pane label="监控" name="2">
          <div v-if="activeNum == 2">
            <div class="describe">
              <div class="describe_title">说明：</div>
              <ul class="describe_item">
                <li>1、</li>
              </ul>
            </div>
            <div class="list_box">
              <div class="list_item water_item">
                <div class="echarts_box"></div>
                <p class="path">路径：</p>
              </div>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
    <!-- <div class="wangEditor_down">
      <router-view />
    </div> -->
  </div>
</template>
<script>
import videoOne from './components/videoOne.vue';
export default {
  components: {
    videoOne
  },
  data() {
    return {
      activeName: "1",
      activeNum: "1",
    };
  },
  methods: {
    handleClick(tab, event) {
      this.activeNum = tab.name;
    },
  },
};
</script>

<style scoped>
.list_box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: flex-start;
  align-items: flex-start;
  overflow: auto;
  height: 62vh;
}
.list_item {
  display: inline-block;
  /* width: 48%; */
  /* min-height: 450px; */
  box-shadow: 0 0px 5px #1a9be6;
  border: #1a9be6 1px solid;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.describe {
  height: 100px;
  box-shadow: 0px 0px 5px #1a9be6;
  border-top: #1a9be6 1px solid;
  padding-top: 10px;
}
.describe_title {
  width: 100%;
  margin-left: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
  /* 直接将英文变成大写 */
  text-transform: uppercase;
  letter-spacing: 0.1ch;
  line-height: 1;
  padding-bottom: 0.5em;
  margin-bottom: 1rem;
  position: relative;
}
.describe_title:after {
  display: block;
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #1a9be6, #1a57e6);
  bottom: 0;
}

.describe {
  width: 98%;
  margin-top: 0;
  margin-left: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.describe_item {
  height: 60px;
  overflow-y: auto;
}
.describe_item li {
  margin-left: 1rem;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}
.water_item {
  width: 18%;
}
.path {
  height: 50px;
  line-height: 25px;
  white-space: wrap;
  font-size: 16px;
  padding: 0 10px;
  color: #333;
  background-color: #6ab7be;
}
.echarts_box {
  height: 300px;
}
</style>